import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/welcome-page/HelloWorld'
import home from '@/components/home-page/home'
import login from '@/components/login-page/login'
import info from '@/components/info-page/info'
import result from '@/components/search-page/result'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/homepage',
      name: 'home',
      component: home
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/info',
      name: 'info',
      component: info
    },
    {
      path: '/SearchResult',
      name: 'result',
      component: result
    }
  ]
})
